//
//  BaseViewController.h
//  BosidengIphone
//
//  Created by  on 11-12-28.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BaseViewController : UIViewController {
    NSOperationQueue *requestQueue;
    UIViewController *mainViewController;
}
@property(nonatomic, retain)UIViewController *mainViewController;

//设置请求的名称
- (NSDictionary *)setRequestName:(NSString *)name;

//返回请求的名称
- (NSString *)getRequestName:(NSDictionary *)userInfo;

//检查是否要删除的本地记录
- (BOOL)isNeedDeleteItem:(NSString *)localId serviceData:(NSArray *)serviceData serviceKey:(NSString *)serviceKey;

//检查本地文件名和服务器上文件名是否相同
- (BOOL) checkImageUrlIsSame:(NSString *)localUrl serviceUrl:(NSString *)serviceUrl;

//根据网络路径取得本地图片缓存路径
- (NSString *)getLocalImagePath:(NSString *)imageUrl;

@end
